﻿using System.Web.Routing;
using AllAgreed.Controllers;
using AllAgreed.NavigationRoutes;

namespace AllAgreed.App_Start
{
    public class LayoutsRouteConfig
    {
        public static void RegisterRoutes(RouteCollection routes)
        {
            routes.MapNavigationRoute<HomeController>("Главная", c => c.Index());
            routes.MapNavigationRoute<UserController>("Пользователи", c => c.All());
            routes.MapNavigationRoute<UserController>("Профиль", c => c.Profile(null));
            //routes.MapNavigationRoute<ExampleLayoutsController>("Example Layouts", c => c.Starter())
            //      .AddChildRoute<ExampleLayoutsController>("Marketing", c => c.Marketing())
            //      .AddChildRoute<ExampleLayoutsController>("Fluid", c => c.Fluid())
            //      .AddChildRoute<ExampleLayoutsController>("Sign In", c => c.SignIn())
            //    ;
        }
    }
}
